//
//  mmjWebViewController.m
//  Social
//
//  Created by seirra on 2018/5/17.
//  Copyright © 2018年 mmj. All rights reserved.
//

#import "mmjWebViewController.h"

@interface mmjWebViewController ()

@end

@implementation mmjWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSLog(@"%@",self.url);
    [self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(IBAction)reload{
    [self.webview reload];
}
-(IBAction)back{
    [self.webview goBack];
}
-(IBAction)forward{
    [self.webview goForward];
}
-(void)webViewDidFinishLoad:(UIWebView *)webView{
    self.back.enabled = webView.canGoBack;
    self.forword.enabled = webView.canGoForward;
}
@end
